.ohm-alert{
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  visibility: hidden;
  .ohm-alert-overlay{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0;
    transition: opacity .5s ease-in-out;
  }
  .ohm-alert-wrapper{
    position: absolute;
    overflow: hidden;
    overflow-y: scroll;
    top: 0;
    width: 100%;
    height: 100%;
    .clear{
      display: block;
      opacity: .6;
      position: fixed;
      right: 18px;
      top: 5px;
      transition: opacity .3s ease-in-out;
      &:hover{
        opacity: 1;
      }
    }
  }
  .ohm-alert-clear{
    fill: #ffffff;
  }
  .ohm-alert-item{
    background-color: #ffffff;
    opacity: 1;
    user-select: none;
    min-width: 280px;
    max-width: 450px;
    box-shadow: 0 1px 3px #808080;
    position: relative;
    margin: 0 auto;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    z-index: 0;
    animation: alertShow .3s ease-in-out;
    .header{
      background-image: url("");
      background-color: $color1;
      background-repeat: no-repeat;
      height: 75px;
      background-size: cover;
      background-position: center;
      position: relative;
      padding: 10px 15px;
      &:after{
        content: "";
        position: absolute;
        bottom: -1px;
        left: 0;
        height: 2px;
        width: 100%;
        background-color: #ffffff;
      }
    }
    .body{
      header{
        color: $color1;
        font-weight: 600;
        font-size: 18px;
        position: relative;
        margin-top: -18px;
        padding-bottom: 10px;
      }
      padding-left: 20px;
      padding-right: 20px;
    }
    .footer{
      padding: 20px;
    }
    &.close{
      transition: all .3s ease-in-out;
    }
    @keyframes alertShow {
      0%{
        transform:translateY(-100%);
        opacity: 0;
      }
      100%{
        transform:translateY(0);
        opacity: 1;
      }
    }
    &.active{
      z-index: 1;
    }
  }
  .ohm-alert-close{
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: lighten($color1,65%);
  }
  &.open{
    visibility: visible;
    .ohm-alert-overlay{
      opacity: .5;
    }
  }
  &.close{
    .ohm-alert-overlay{
      opacity: 0;
    }
  }
}
